The :invalid CSS pseudo-class

122

/* Selects any invalid <input> */
input:invalid {
  background-color: pink;
}

Comments

Submit
0 Comments